Skip to content

Comments

PR: Display message if unexpected test result is received#234

Open
jitseniesen wants to merge 3 commits intospyder-ide:masterfrom
jitseniesen:xdist
Open

PR: Display message if unexpected test result is received#234
jitseniesen wants to merge 3 commits intospyder-ide:masterfrom
jitseniesen:xdist

Conversation

@jitseniesen
Copy link
Member

This may happen when pytest-xdist is used, because that pytest plugin does not report which tests are collected using the hook pytest_item_collected(). Before Spyder raised a KeyError in this situation. This commit shows a more user-friendly message instead (as shown below). Also add a test for this.

Fixes #233.

Screenshot_20260211_221422

This may happen when pytest-xdist is used, because that pytest
plugin does not report which tests are collected using the hook
pytest_item_collected(). Before Spyder raised a KeyError in this
situation. This commit shows a more user-friendly message instead.
Also add a test for this.
@jitseniesen jitseniesen added this to the v0.7.2 milestone Feb 11, 2026
@jitseniesen jitseniesen self-assigned this Feb 11, 2026
GitHub no longer includes pkg_resources and it's been deprecated
for a while.
From pytest 7.0.0 onwards, the pytest_report_header hook uses the
start_path parameter instead of the startdir parameter, which is
deprecated (and raises an error when testing against pytest 9).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using pytest-xdist with argument "-n auto" causes internal error

1 participant